package com.ygy.entity.VO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class EvaluationVo implements Serializable {

    /**
     *
     */


    private Integer evaluationId;

    /**
     * 是评价人的买家ID
     */
    private Integer buyerId;

    /**
     * sellerId当身份是卖家时候的评价id
     */
    private Integer sellerId;

    /**
     * orderId是关联订单ID
     */

    private Integer orderId;

    /**
     * receiverId是评论接收者用户Id
     */
    private Integer receiverId;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    /**
     *
     */
    @TableField(value = "content")
    private String content;

    /**
     * 评价的内容
     */
    @TableField(value = "score")
    private Double score;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    //用户
    private String username;

    private String avatar;

}
